Input system, centralizing default behaviour for the input. More...
Input system, centralizing default behaviour for the input.
void nkWinUi::InputSystem::registerToTrack | ( | EVENT_TYPE | eventType, |
Component * | component | ||
) |
Register a component for it to listen to events of some kind even if not focused.
eventType | The type of event to listen to. |
component | The component needing to listen. |
void nkWinUi::InputSystem::unregisterTracking | ( | EVENT_TYPE | eventType, |
Component * | component | ||
) |
Unregister a component from listening to an event kind.
eventType | The type of event the component needs to stop listening to. |
component | The component needing to stop following the events. |
void nkWinUi::InputSystem::requestWindowFollow | ( | Component * | caller, |
bool | value | ||
) |
Requests a tracking to know when a mouse is leaving a component.
caller | The component that needs to follow the mouse leaving it. |
value | If the tracking needs to occur (true) or not (false). |
mouseClickCallback nkWinUi::InputSystem::getMouseClickCallback | ( | ) | const |
menuBarCallback nkWinUi::InputSystem::getMenuBarCallback | ( | ) | const |
closeCallback nkWinUi::InputSystem::getCloseCallback | ( | ) | const |
contextMenuCreationCallback nkWinUi::InputSystem::getContextMenuCreationCallback | ( | ) | const |
const std::map<Component*, std::pair<bool, bool> >& nkWinUi::InputSystem::getFollowedWindows | ( | ) | const |
void nkWinUi::InputSystem::setMouseClickCallback | ( | mouseClickCallback | callback | ) |
Sets the global mouse click callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setMouseLeaveCallback | ( | mouseLeaveCallback | callback | ) |
Sets the global mouse leave callback. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setKeyDownCallback | ( | keyDownCallback | callback | ) |
Sets the global key down callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setKeyUpCallback | ( | keyUpCallback | callback | ) |
Sets the global key up callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setMenuCallback | ( | menuBarCallback | callback | ) |
Sets the global menu bar callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setCheckBoxCallback | ( | checkBoxCallback | callback | ) |
Sets the global check box callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setTreeSelectionCallback | ( | treeSelectionCallback | callback | ) |
Sets the global tree selection callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setListBoxSelectionCallback | ( | listBoxSelectionCallback | callback | ) |
Sets the global list box selection callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setComboSelectionCallback | ( | comboSelectionCallback | callback | ) |
Sets the global combo box selection callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setEditBoxKeyCallback | ( | editBoxKeyCallback | callback | ) |
Sets the global edit box callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setTabWindowCallback | ( | tabWindowCallback | callback | ) |
Sets the global tab window callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setCloseCallback | ( | closeCallback | callback | ) |
Sets the global close callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setContextMenuCreationCallback | ( | contextMenuCreationCallback | callback | ) |
Sets the global context menu creation callback to use. This function will be the fallback for all component not having a dedicated callback.
callback | The callback to use. |
void nkWinUi::InputSystem::setCursorPositionScreen | ( | const nkMaths::Point & | absPos | ) |
Allows to change the cursor position on screen.
absPos | The absolute position, on screen, the cursor has to take. |